<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
   <head>
		<title>Unit Test</title>
		<script type="text/javascript" src="../../working/core.js"></script>
		<script type="text/javascript" src="Unit.js"></script>
		<script type="text/javascript">
		
		
		var stringTestFixture = new ITestFixture();
			stringTestFixture.Description = "Unit tests to exercise String component";
	        stringTestFixture.Category = "GlobalEntities";
			//how many times will run this entire test;
	        stringTestFixture.Times = 1
			
	        stringTestFixture.AddTest([
				function(){
					return Assert.That( $(), new Is.EqualTo(null));
				},
				function(){
				    return Assert.That( $("Element"), 	new Is.EqualTo(	document.getElementById("Element")	) );
		        },
				function(){
					return Assert.That( 
						$("Element","Element1","Element2"),
						new Is.InstanceOf(Array)
					);
				},
				function(){
					var o = document.getElementById("Element")
				    return Assert.That( $(o), 	new Is.EqualTo(	o ) );
		        },
				function(){
				    return Assert.That( $(false), 	new Is.EqualTo(	false ) );
		        }
			])
			
   	        UnitJs.AddTestFixture(stringTestFixture);
			
			window.onload = function(){
				UnitJs.Run();
			}
			
		</script>

   </head>
   <body>
		<div id="Element">Element</div>
		<div id="Element1">Element1</div>
		<div id="Element2">Element2</div>
	
   </body>
</html>			
